package cn.broadsense.biz.dto;

import cn.broadsense.common.annotation.TreeChildren;
import cn.broadsense.common.annotation.TreeKey;
import cn.broadsense.common.annotation.TreeParentKey;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeDto {

    @TreeKey
    private Integer id;

    @TreeParentKey
    private Integer parentId;

    private String name;

    @TreeChildren
    private List<?> children;
}
